﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SPA_alternative.Data
{
    public class ProductContext
    {
        static List<Product> products = new List<Product>()
        {
            new Product() {
                ID = 1,
                Name = "Mountain Bike",
                Price = 1995.95M,
                Quantity = 5,
                Category = "Bikes",
            },
            new Product() {
                ID = 2,
                Name = "Red Helmet",
                Price = 19.95M,
                Quantity = 53,
                Category = "Accessories",
            },
            new Product() {
                ID = 3,
                Name = "Socks",
                Price = 5.95M,
                Quantity = 243,
                Category = "Clothing",
            },
            new Product() {
                ID = 4,
                Name = "Road Bike",
                Price = 2105.95M,
                Quantity = 3,
                Category = "Bikes",
            },
            new Product() {
                ID = 5,
                Name = "Blue Helmet",
                Price = 19.95M,
                Quantity = 33,
                Category = "Accessories",
            },
        };

        public IList<Product> Products
        {
            get
            {
                return products;
            }
        }
    }
}